<template>
	<div>
		<div>
			<el-button type="primary" @click="jump">跳转</el-button>
		</div>
		<router-link to="/newsdetail/1">新闻1</router-link>
		<router-link to="/newsdetail/2">新闻2</router-link>
		<div>
			<el-button type="primary" @click="add">增加</el-button>
		</div>
		<div>
			<el-button type="primary" @click="reduce">减少</el-button>
		</div>
	</div>
</template>

<script>
	export default{
		methods:{
			jump(){
				this.$router.push({path:'/news'})
			},
			add(){
				this.$store.commit('add',1)
			},
			reduce(){
				this.$store.commit('reduce',1)
			},
		},
	}
</script>

<style>
</style>